//
//  BSLproximity.h
//  Chamleon-template
//
//  Created by YLW on 15/10/16.
//
//

#import "CDVPlugin.h"

typedef enum {
    PROXIMITYSTOPPED = 0 ,
    PROXIMITYSTARTING,
    PROXIMITYRUNNING,
    PROXIMITYERROR
} CDVProximityStatus;

typedef enum {
    PROXITYNONE,
    PROXITYNEAR,
    PROXITYREMOTE
}CDVProximityType;

@interface CDVProximityData : NSObject

@property (nonatomic , assign)CDVProximityStatus proximityStatus;
@property (nonatomic, strong) NSMutableArray* proximityCallbacks;
@property (nonatomic, copy) NSString* proximityFilter;
@property (nonatomic, strong) NSDate* proximityTimestamp;

@property (nonatomic , assign)CDVProximityType proximityType;

@end

@interface BSLproximity : CDVPlugin

@property (nonatomic , strong)NSString *callbackID;

@property (nonatomic , strong)CDVProximityData *proximityData;

- (void)getCurrentProximity:(CDVInvokedUrlCommand *)command;

- (void)watchProximity:(CDVInvokedUrlCommand *)command;

- (void)clearWatch:(CDVInvokedUrlCommand *)command;

@end
